package org.example.mallsystem1104.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.example.mallsystem1104.entity.Carousel;
import org.example.mallsystem1104.mapper.CarouselMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarouselService extends ServiceImpl<CarouselMapper,Carousel> {

    @Resource
    CarouselMapper carouselMapper;

    public List<Carousel> getAllCarousel() {
        return carouselMapper.findAllCarousel();
    }
}
